<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html xmlns:th="http://www.thymeleaf.org">
<!--<![endif]-->
<!-- BEGIN HEAD -->

<head>
    <meta charset="utf-8" />
    <title></title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta content="width=device-width, initial-scale=1" name="viewport" />
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="../superui/content/ui/global/bootstrap/css/bootstrap.min.css"
          th:href="@{/superui/content/ui/global/bootstrap/css/bootstrap.min.css}"/>
    <!-- Font Awesome -->
    <link rel="stylesheet" href="../superui/content/ui/global/font-awesome/css/font-awesome.css"
          th:href="@{/superui/content/ui/global/font-awesome/css/font-awesome.css}"/>
    <!-- Theme style -->
    <link rel="stylesheet" href="../superui/content/adminlte/dist/css/AdminLTE.css"
          th:href="@{/superui/content/adminlte/dist/css/AdminLTE.css}"/>
    <link rel="stylesheet" href="../superui/content/adminlte/dist/css/skins/_all-skins.min.css"
          th:href="@{/superui/content/adminlte/dist/css/skins/_all-skins.min.css}"/>
    <link rel="stylesheet" href="../superui/content/min/css/supershopui.common.min.css"
          th:href="@{/superui/content/min/css/supershopui.common.min.css}"/>
    <link rel="stylesheet" href="../superui/content/plugins/bootstrap-table/bootstrap-table.css"
          th:href="@{/superui/content/plugins/bootstrap-table/bootstrap-table.css}"/>
    <link rel="stylesheet" href="../css/global.css"
          th:href="@{/css/global.css}"/>
    <!--全局通用框架样式 end-->
    <!-- iCheck -->
    <link rel="stylesheet" href="../superui/content/plugins/iCheck/square/blue.css"
          th:href="@{/superui/content/plugins/iCheck/square/blue.css}"/>
</head>
<body>
<section class="content-header">
    <h1>
        校区管理
    </h1>
    <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
        <li><a href="#">系统管理</a></li>
        <li class="active">校区管理</li>
    </ol>
</section>
<!-- Main content -->
<section class="content">

    <div class="row">
        <!-- BEGIN SAMPLE TABLE PORTLET-->
        <div class="col-md-12">
            <!-- BEGIN SAMPLE TABLE PORTLET-->
            <div class="box-body">
                <div class="panel panel-default no-margin">
                    <div class="panel-body search-box">
                        <form id="formSearch" class="form-horizontal">
                                <div class="col-md-3">
                                    <div class="form-group">
                                        <label for="txt_search_schoolName" class="col-sm-3 control-label">校区名称</label>
                                        <div class="col-sm-9">
                                            <input id="txt_search_schoolName" name="schoolName" class="form-control" type="text" value="" placeholder="请输入学校名称">
                                        </div>
                                    </div>
                                </div>
                            <div class="col-md-3">
                                <div class="form-group">
                                    <label for="txt_search_schoolAddress" class="col-sm-3 control-label">校区地址</label>
                                    <div class="col-sm-9">
                                        <input id="txt_search_schoolAddress" name="schoolAddress" class="form-control" type="text" value="" placeholder="请输入学校地址">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-3">
                                <div class="form-group">
                                    <label class="col-sm-3 control-label"></label>
                                    <div class="col-sm-9">
                                    <button type="button" class="btn btn-default" id="btn-search" onclick="clickSearch()">
                                        <i class="fa  fa-search"></i>
                                        查询
                                    </button>
                                    </div>
                                </div>
                            </div>


                        </form>
                    </div>
                </div>

                <div id="schoolTableToolbar" class="btn-group">
                    <button id="btn_add" type="button" class="btn btn-primary" onclick="clickAddBtn()">
                        <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>新增
                    </button>
                </div>
                <div class="table-scrollable">
                    <table class="table-striped table-hover" id="schoolTable">

                    </table>
                </div>
            </div>
            <!-- END SAMPLE TABLE PORTLET-->

            <div id="schoolDialog" class="hide">
                <form id="frmMain" class="form-horizontal">
                    <div class="box-body" style="width: 99%">
                        <input type="hidden" id="id" name="id" value="">
                        <div class="form-group">
                            <label for="schoolName" class="col-sm-3 control-label necessary">校区名称</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" id="schoolName" name="schoolName" placeholder="请输入校区名称" />
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="schoolAddress" class="col-sm-3 control-label necessary">校区地址</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" id="schoolAddress" name="schoolAddress" placeholder="请输入校区地址" />
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="cityId" class="col-sm-3 control-label necessary">城市</label>
                            <div class="col-sm-4">
                                <select class="form-control" id="provinceId" name="provinceId" onchange="selectProvince()">
                                    <option value="">--请选择省--</option>
                                </select>
                            </div>
                            <div class="col-sm-4">
                                <select class="form-control" id="cityId" name="cityId">
                                    <option value="">--请选择市--</option>
                                </select>
                            </div>
                        </div>
                    </div>
                </form>
            </div><!-- /.modal -->
        </div>
    </div>

</section>
<!-- REQUIRED JS SCRIPTS -->
<!-- jQuery 2.2.3 -->
<script src="../superui/content/ui/global/jQuery/jquery.min.js"
        th:src="@{/superui/content/ui/global/jQuery/jquery.min.js}"></script>
<!-- Bootstrap 3.3.6 -->

<script src="../superui/content/ui/global/bootstrap/js/bootstrap.min.js"
        th:src="@{/superui/content/ui/global/bootstrap/js/bootstrap.min.js}"></script>
<!--supershopui-->
<script src="../superui/content/min/js/supershopui.common.js"
        th:src="@{/superui/content/min/js/supershopui.common.js}"></script>

<!--bootstrap-table-->
<script src="../superui/content/plugins/bootstrap-table/bootstrap-table.js"
        th:src="@{/superui/content/plugins/bootstrap-table/bootstrap-table.js}"></script>
<script src="../superui/content/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.js"
        th:src="@{/superui/content/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.js}"></script>
<script src="../js/assets/common/bootstrap-table-object.js"
        th:src="@{/js/assets/common/bootstrap-table-object.js}"></script>
<!-- iCheck -->
<script src="../superui/content/plugins/iCheck/icheck.min.js"
        th:src="@{/superui/content/plugins/iCheck/icheck.min.js}"></script>
<script src="./../../js/assets/common/Feng.js"
        th:src="@{/js/assets/common/Feng.js}"></script>
<!-- 请求脚本-->
<script src="./../../js/assets/common/ajax-util.js"
        th:src="@{/js/assets/common/ajax-util.js}"></script>
<!-- 请求脚本-->
<script src="./../../js/assets/common/common.js"
        th:src="@{/js/assets/common/common.js}"></script>

<script th:inline="javascript">
    /*<![CDATA[*/
    var baseUrl = [[${#httpServletRequest.getContextPath()}]];
    //    var baseUrl = [[@{/}]];
    if (baseUrl === '/') baseUrl = '';
    Feng.addCtx(baseUrl);
    /*]]>*/
</script>

<!-- 用户脚本-->
<script src="./../../js/admin/school/school.js"
        th:src="@{/js/admin/school/school.js}"></script>
<script src="./../../js/admin/school/school_info.js"
        th:src="@{/js/admin/school/school_info.js}"></script>

</body>
</html>